package com.zeng.jiudian.mapper;

import com.zeng.jiudian.bean.UserModel;
import com.zeng.jiudian.bean.UserModelExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper
{
    long countByExample(UserModelExample example);

    int deleteByExample(UserModelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserModel record);

    int insertSelective(UserModel record);

    List<UserModel> selectByExample(UserModelExample example);

    //创一
    public List<UserModel> selectAll(UserModel userModel);

    //创二
    public int selectCount(UserModel userModel);

    UserModel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserModel record, @Param("example") UserModelExample example);

    int updateByExample(@Param("record") UserModel record, @Param("example") UserModelExample example);

    int updateByPrimaryKeySelective(UserModel record);

    int updateByPrimaryKey(UserModel record);
}